package com.bwie.xujiahaonewstitle.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

import com.bwie.newstitlexujiahao.R;


public class SearchActivity extends AppCompatActivity {
    private ImageButton mImageButton;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);
        //初始化控件
        initView();
        //设置监听
        initData();
    }
    private void initData() {
        mImageButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            overridePendingTransition(R.anim.in_form_right,R.anim.in_form_finish);
            }
        });
    }

    private void initView() {
        mImageButton = (ImageButton) findViewById(R.id.imageButton);
    }
}
